﻿<td valign="top" width="73%">
  <div align="center">
        <table class="blankt" summary="أزرار" border="0" cellspacing="1" width="100%">
      <tr>
        <td width="50%" align="right">
        <a href="pm.php?send=1&amp;index=1"><img alt="رسالة جديدة" src="{$image_path}/new_pm.gif" border="0" /></a>
        <a href="attach.php?download_pm=1&amp;folder={$folder}"><img alt="أخذ نسخة" src="{$image_path}/take_copy.gif" border="0" /></a>
        </td>
        <td width="50%" align="left">{$print_page}</td>
    </tr>
    </table>
<form method="POST" action="pm.php?{if $sent neq 1}del_pm=1{/if}{if $sent eq 1}del_sent=1{/if}">
<table class="border" summary="صندوق الرسائل" border="1" cellspacing="1" width="100%">
<tr>
   <td class="tcat" colspan="5">صندوق الرسائل</td>
</tr>
      <tr>
        <td class="thead" width="5%"><input name="all" class="checkbox" type="checkbox" onclick={literal}"if(this.form.all.checked == true){makeCheck(this.form)} if(this.form.all.checked == false){makeUncheck(this.form)}{/literal}" /></td>
                  <td class="thead" width="5%">&nbsp;</td>
        <td class="thead" width="55%">عنوان الرسالة</td>
        <td class="thead" width="15%">{$send_field}</td>
        <td class="thead" width="20%">تاريخ الإرسال</td>
      </tr>
      {section name=idx loop=$pms_row}
      <tr>
        <td class="row3" width="5%"><input name="del[]" class="checkbox" type="checkbox" value="{$pms_row[idx].id}" /></td>
        <td class="row3dark" width="5%"><img alt="" src="{$pms_row[idx].icon}" border="0" /></td>
        <td class="row1" width="55%">
                  <a href="pm.php?read=1&amp;id={$pms_row[idx].id}{if $sent eq 1}&amp;sent=1{/if}">{$pms_row[idx].title|escape:"html"}</a>
                  <br />
        {if $folder neq "sent"}
        {if $pms_row[idx].user_read neq 1}<span class="unreadpm">رسالة جديدة</span>{/if}
        {if $pms_row[idx].user_read eq 1}<span class="readpm">رسالة مقروؤة</span>{/if}
        {/if}
        </td>
        {if $sent neq 1}<td class="row3dark" width="15%"><a href="misc.php?profile=1&amp;username={$pms_row[idx].user_from|escape:"html"}">{$pms_row[idx].user_from|escape:"html"}</a></td>{/if}
        {if $sent eq 1}<td class="row3dark" width="15%"><a href="misc.php?profile=1&amp;username={$pms_row[idx].user_to|escape:"html"}">{$pms_row[idx].user_to|escape:"html"}</a></td>{/if}
        <td class="row3" width="20%">{$pms_row[idx].date}</td>
      </tr>
      {/section}
      <tr>
      <td class="row3dark" colspan="5">{$pm_max}</td>
      </tr>
    </table>
    <table class="blankt" summary="حذف" border="0" cellspacing="1" width="90%">
           <tr>
                <td class="blankt" align="right"><input size="10" name="submit" type="submit" value="حذف" /></td>
                </tr>
                </table>
         </form>
  </div>

</td></tr></table>